package com.boge.study.file;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class FileTest {

	public static void main(String[] args) throws IOException {
		String fileName = "E:/J2EE/Luna_eclipse/loggers/stderr.log";
		File file = new File(fileName);
//		System.out.println(file.getName());
		BufferedReader reader = new BufferedReader(new FileReader(file));
		String lineData;
		while((lineData = reader.readLine()) != null) {
			System.out.println("-----:" + lineData);
		}
		
	}
	
}
